package com.xing.controller;

import com.xing.entity.Masterpiece;
import com.xing.entity.Sciences;
import com.xing.entity.Stacks;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class annotationController {
    @Autowired
    private Sciences sciences;
    @Autowired
    private Masterpiece masterpiece;
    @Autowired
    private Stacks stacks;
    public void DisplayStacks(){
        stacks.setMasterpiece(masterpiece);
        stacks.setSciences(sciences);
        System.out.println(stacks);
    }
}
